const express = require("express");
const app = express();
// 将当前目录设置为静态资源
app.use(express.static(__dirname));
// 使用中间件
app.use(express.urlencoded());
app.get("/my",(req,res)=>{
	console.log(req.query);
	res.send("get->my");
});

app.post("/my",(req,res)=>{
	console.log("req.body",req.body);// 接收请求体的内容
	res.send("post-my");
})
app.listen(80,()=>{
	console.log("success");
})